import java.io.File;
import java.util.Arrays;

public class Test6 {
    public static void main(String[] args) {
        File file1 = new File("G:/test");
        File[] files1 = file1.listFiles();
        System.out.println(Arrays.toString(files1));
        File file2 = new File("G:/tes1");
        File[] files2 = file2.listFiles();
        System.out.println(Arrays.toString(files2));
        String[] str = null;
        System.out.println(Arrays.toString(str));
    }
}
